package com.cusc.module_apply.model;

import android.util.ArrayMap;

/**
 * 作者: wangfei
 * 创建时期: 2020/4/27.
 * 包名: com.cusc.module_apply.model
 * 类名: OSAndroidMvvm
 */
public class ApplyMainModelFactory {
    static ArrayMap<String,ApplyMainModel> array = new ArrayMap<>();

    public static ApplyMainModel getApplyMainModel(String title, int img,boolean showIcon){
        if (array.containsKey(title)){
            return array.get(title);
        }else {
            ApplyMainModel applyMainModel = new ApplyMainModel(title,img,showIcon);
            array.put(title,applyMainModel);
            return applyMainModel;
        }
    }
}
